﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true" CodeBehind="insertaccount.aspx.cs" Inherits="ProjectSem3.Admin.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $('#form1').validate({
            rules: {
                <%=txtusername.UniqueID %>: {
                    minlength: 6,
                    maxlength: 12,
                    required: true
                },
                <%=txtpassword.UniqueID %>: {
                    required: true
                }
        }
    });
});
</script>
    <div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
							<div class="portlet-header ui-widget-header">
                            <span class="ui-icon ui-icon-circle-arrow-s"></span><a href="accountadmin.aspx" style="color:#FFF">Account Admin <<< </a></div>
							<div class="portlet-content">
									<ul style="margin:0 0 0 250px;">
										<li style="width:350px;>
                                            <asp:Label ID="Label1" runat="server" Text="Username"></asp:Label>
											<div>
												<input runat="server" id="txtusername" type="text" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:102px; width:236px; margin-top: -15px;" />
                                                <asp:RegularExpressionValidator ID="regexpName" runat="server" 
                                                    ErrorMessage="Username no valid." ControlToValidate="txtusername"     
                                                            ValidationExpression="^[a-zA-Z_.\d]{1,40}$" ForeColor="Red" style="margin-left:100px;" ></asp:RegularExpressionValidator>
                                            </div>
										</li>
										<li style="width:350px;>
                                            <asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
											<div>
												<input runat="server" id="txtpassword" type="password" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:102px; width:236px; margin-top: -15px;" />												
											</div>
										</li>
										<li style="width:350px;>
                                            <asp:Label ID="Label3" runat="server" Text="Retype Password"></asp:Label>
											<div>
												<input runat="server" id="retype" type="password" tabindex="1" maxlength="255" value="" class="field text small" style="margin-left:102px; width:236px; margin-top: -15px;" />
											</div>
										</li>
										<li>
                                            <asp:Label ID="Label4" runat="server" Text="Pemision"></asp:Label>
											<div>
                                                <select runat="server" id="pemision" style="margin-left:48px;">
                                                <option value="2">Admin</option>
                                                </select>
											</div>
										</li>
                                        <li>
                                            <asp:Label ID="Labelkq" runat="server" Text="" style="color:Red; margin-left:100px;"></asp:Label>
                                        </li>	
										<li class="buttons">
                                            <asp:Button ID="ButtonInsert" runat="server" Text="Insert" 
                                                style="margin-left:100px;" onclick="ButtonInsert_Click" />
										</li>
									</ul>
							</div>
		</div>

</asp:Content>
